<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich">
    <h:head>
        <style type="text/css">
            .top {
                vertical-align: top;
            }
            .info {
                height: 202px;
                overflow: auto;
            }
        </style>
    </h:head> 
    <h:form>
        <rich:panel header="职工清册" styleClass="content-hight">
            <h:outputLabel id="errmessage" value="#{provident.errmessage}" style="color:red" />
            <rich:fileUpload fileUploadListener="#{provident.personListener}"
                             maxFilesQuantity="#{provident.uploadsAvailable}"
                             id="upload"
                             doneLabel="完成"
                             noDuplicate="true"
                             sizeExceededLabel="文件大小超过允许"
                             serverErrorLabel="上传时发生服务器端错误"
                             addLabel="添加"
                             uploadLabel="上传"
                             clearAllLabel="全部清除"
                             clearLabel="清除"
                             deleteLabel="删除">
                <a4j:ajax event="uploadcomplete" render="errmessage" />
            </rich:fileUpload>
        </rich:panel>
    </h:form>
</ui:composition>
